﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CRMSystemV2.MVCWeb.Models.ChangePasswordModel>" %>

<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
</head>
<body>
    <%--<h2>
        更改密码</h2>
    <p>
        请使用以下表单更改密码。
    </p>
    <p>
        新密码必须至少包含
        <%: Membership.MinRequiredPasswordLength %>
        个字符。
    </p>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"
        type="text/javascript"></script>
    <% using (Html.BeginForm())
       { %>
    <%: Html.ValidationSummary(true, "密码更改不成功。请更正错误并重试。") %>
    <div>
        <fieldset>
            <legend>帐户信息</legend>
            <div class="editor-label">
                <%: Html.LabelFor(m => m.OldPassword) %>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(m => m.OldPassword) %>
                <%: Html.ValidationMessageFor(m => m.OldPassword) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(m => m.NewPassword) %>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(m => m.NewPassword) %>
                <%: Html.ValidationMessageFor(m => m.NewPassword) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(m => m.ConfirmPassword) %>
            </div>
            <div class="editor-field">
                <%: Html.PasswordFor(m => m.ConfirmPassword) %>
                <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
            </div>
            <p>
                <input type="submit" value="更改密码" />
            </p>
        </fieldset>
    </div>
    <% } %>--%>
    <div class="pageContent">
        <form method="post" action="../CRMSystemService.asmx/ChangePassword"  class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div class="pageFormContent" layouth="58">
            <div class="unit">
                <label>
                    旧密码：</label>
                <input type="password" name="oldPassword" size="30" minlength="6" maxlength="20"
                    class="required" />
            </div>
            <div class="unit">
                <label>
                    新密码：</label>
                <input type="password" id="cp_newPassword" name="newPassword" customvalid="customvalidPwd(element)"
                    title="新密码不合规范" size="30" minlength="6" maxlength="20" class="required alphanumeric" />
            </div>
            <div class="unit">
                <label>
                    重复输入新密码：</label>
                <input type="password" name="rnewPassword" size="30" equalto="#cp_newPassword" class="required alphanumeric" />
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit" id="btnSubmit">
                                提交</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close" id="btnCancel">
                                取消</button></div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
    </div>
</body>
</html>
